package com.xl.qa.entity.param;

import com.xl.dao.domain.XlQuestionAnswer;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NonNull;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author 钟勇
 * Create in 2024/1/15 16:21
 */
@Data
@Accessors(chain = true)
public class AddOrUpdQuesAnswerParam {
    @NotNull(message = "问卷ID不能为空")
    private Integer questionId;

    @NotBlank(message = "订单ID不能为空")
    private String orderId;

    @Schema(title = "回答内容")
    private String answerJsonStr;

    @Data
    @Accessors(chain = true)
    public static class AnswerRow {
        private Integer rowId;
        private String rowValue;
    }

}
